﻿@model FILSTARTUPS_MOBILE.Models.PageInformation

@{
    ViewBag.Title = "Page";
    if(User.Identity.IsAuthenticated)
    {
        Layout = "~/Views/Shared/_Layout.cshtml";
    }
    else
    {
         Layout = "~/Views/Shared/_LayoutNonMember.cshtml";
    }
}
<!--- TEST PAGE  ---->
@section Nav
{
   @foreach(var nav in Model.PageNav)
   {
    <li><a href="Page?pageidPK=@nav.pageidPK&pagename=@nav.pagename">@nav.pagename</a></li>
   }
}
@section SubNav
{
<div data-role="navbar" data-grid="d" >
		<ul>
        @if(Model.CatInfo == null)
            {
               
            }
        else
            {
                foreach (var sub in Model.CatInfo) 
            {
            <li>@Html.ActionLink(sub.categoryname, "Article", new { catid = sub.catidPK})</li>
        }
		}	
		</ul>
	</div><!-- /navbar -->
}
<fieldset>
   <h2><b> @Model.pageinfo.pagename</b></h2>

    @Html.Raw(Model.pageinfo.pagedescription)
</fieldset>